﻿@model FILSTARTUPS_CMS.Models.Role

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<script type="text/javascript">
$(function() {
    $("input:submit",".createrole").button();
});
</script>
<div class="createrole">
@using (Html.BeginForm("Create", "Role", FormMethod.Post, new { @class = "form-stacked" }))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Role</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Rolename)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Rolename)
            @Html.ValidationMessageFor(model => model.Rolename)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RoleDescription)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.RoleDescription)
            @Html.ValidationMessageFor(model => model.RoleDescription)
       </div>
        <br />
        <p>
            <input type="submit" value="Create" class="ui-button-text" />
        </p>
    </fieldset>
}
</div>

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
